<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="__UI__/css/bs3/dpl.css" rel="stylesheet" type="text/css" />
<link href="__UI__/css/bs3/bui.css" rel="stylesheet" type="text/css" />
<link href="__UI__/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__UI__/js/jquery-1.8.1.min.js"></script>
<script src="__UI__/js/bui/bui.js"></script>
<script src="__UI__/js/bui/config.js"></script>
<style type="text/css">

button {
	margin-right:20px;
}

.button-tabs li {
	float:left;
	margin:0px 20px;
}

.control-group .controls{
	float:none;
	margin-bottom:20px;
}

.con{
	width:80%;
	margin:20px auto;
	height:auto;
}

</style>
</head>
<body>
<div class="demo-content" style="margin-top:1%;">
	<div class="row" style="width:90%; margin:0px auto;">
    	<div style="text-align:center"><h2>{$scripts.scriptsname} - 演练前奏</h2><hr></div>
        <form id="J_Form" class="form-horizontal" method="post" action="#">
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>演练窗口</h3></label>
                    <div class="controls">
                        <a class="button button-info" onclick="pingFunction()">综合演练窗口</a>
                    </div>
				</div>
            </div>
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>演练名称</h3></label>
                    <div class="controls">
                        <a class="button button-info" onclick="pingFunctions()">主屏显示</a>
                        <a class="page-action" href="#" data-href="ping/my.html" title="测试页面" data-id="test">测试页面</a>
<script>
function pingFunction(){
			$.ajax({
				url:'{:U("Ping/main")}',
				dataType:'json',
				data:{'d':'d'},
				success:function(data){
					if(data.status == 'y'){
						window.location.href=url;
					}
				}
			});
	
}

function pingFunctions(){
			$.ajax({
				url:'{:U("Ping/main")}',
				dataType:'json',
				data:{'d':'ds'},
				success:function(data){
					if(data.status == 'y'){
						window.location.href=url;
					}
				}
			});
	
}
</script>
                        <audio controls src='{:U("Home/Drill/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"scriptsname","tid"=>"演练名称"))}'></audio>
                        <div class="con">{$scripts.scriptsname}</div>
                    </div>
				</div>
            </div>
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>演练概述</h3></label>
                    <div class="controls">
                        <a class="button button-info" href='{:U("Home/Ping/index",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"brief","tid"=>"演练概述"))}#scripts/ping' target="_blank">主屏显示</a>
                        <audio controls src='{:U("Home/Ping/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"brief","tid"=>"演练概述"))}'></audio>
                        <div class="con">{$scripts.brief}</div>
                    </div>
				</div>
            </div>
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>演练目标</h3></label>
                    <div class="controls">
                        <a class="button button-info" href='{:U("Home/Ping/index",array("sid"=>I("get.sid"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"goal","tid"=>"演练目标"))}#scripts/ping' target="_blank">主屏显示</a>
                        <audio controls src='{:U("Home/Ping/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"goal","tid"=>"演练目标"))}'></audio>
                        <div class="con">{$scripts.goal}</div>
                    </div>
				</div>
            </div>
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>演练规则</h3></label>
                    <div class="controls">
                        <a class="button button-info" href='{:U("Home/Ping/index",array("sid"=>I("get.sid"),"bid"=>"scripts","pid"=>I("get.pid"),"nid"=>"rules","tid"=>"演练规则"))}#scripts/ping' target="_blank">主屏显示</a>
                        <audio controls src='{:U("Home/Ping/voice",array("sid"=>I("get.id"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"rules","tid"=>"演练规则"))}'></audio>
                        <div class="con">{$scripts.rules}</div>
                    </div>
				</div>
            </div>
            <div class="control-group">
				<div class="controls">
                    <label class="control-label"><h3>参演部门</h3></label>
                    <div class="controls">
                        <a class="button button-info" href='{:U("Home/Ping/index",array("sid"=>I("get.sid"),"pid"=>I("get.pid"),"bid"=>"scripts","nid"=>"department","tid"=>"参演部门"))}#scripts/ping' target="_blank">主屏显示</a>
                        <a class="button button-warning" onClick="signFunction();" id="signin">全部签到</a>
                        <div id="show6" class="con">
                            <volist name="department" id="v">
                            	<div style="display:inline-block; width:200px">
                                	<input type="checkbox" class="department[]">&nbsp;{$v}
                                </div>
                            </volist>
                        </div>
                    </div>
				</div>
            </div>
            <div class="row actions-bar">
				<div class="form-actions span13">
					<a class="button button-info" onclick="">场景演练</a>
                    <a class="button button-info" href='{:U("Home/Drill/index",array("sid"=>I("get.sid"),"pid"=>I("get.pid")))}#scripts/drill' target="_blank">结束演练</a>
				</div>
			</div>
        </form>
	</div>
</div>
<script type="text/javascript" src="__UI__/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
	function signFunction(){
		var arr = $(':checkbox'); 
		for(var i=0;i<arr.length;i++){ 
			arr[i].checked = ! arr[i].checked; 
		} 
	} 
	
	$(function () {       
		$('#backid').click(function(){
			top.topManager.openPage({
				id:'drill_index',
				title:'正式演练',
				href:'{:U("Drill/index",array("sid"=>I("get.sid")))}',
				isClose:true,
				reload:true,
			});
		 });
    });
	
	$(function () {       
		$('#voice').click(function(){
			$.ajax({
				url:'{:U("Ping/voice")}',
				dataType:'json',
				success:function(data){
					if(data.status == 'y'){
						
					}
				}
			});
		 });
    });
</script>
</body>
</html>